package SnailCatMallWebAppliction.mapper;

import SnailCatMallWebAppliction.domain.Admin;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface AdminMapper {
    int deleteByPrimaryKey(Integer adminId);

    int insert(Admin record);

    int insertSelective(Admin record);

    Admin selectByPrimaryKey(Integer adminId);

    int updateByPrimaryKeySelective(Admin record);

    int updateByPrimaryKey(Admin record);
    int updateAdminSession(@Param("updatedAdminSession") String updatedAdminSession);
    List<Admin> selectByAdminSession(@Param("adminSession") String adminSession);
    String selectFirstAdminSession();
    String selectFirstAdminPassword();
    int updateAdminPasswordAndAdminSession(@Param("updatedAdminPassword") String updatedAdminPassword, @Param("updatedAdminSession") String updatedAdminSession);






}